Skip to main content link. Accesskey S
  • Help
  • HCL Logo
  • HCL Notes and Domino Application Development wiki
  • THIS WIKI IS READ-ONLY. Individual names altered for privacy purposes.
  • HCL Forums and Blogs
  • Home
  • Product Documentation
  • Community Articles
  • Learning Center
  • API Documentation
Search
Community Articles > Programming > Agents > Using Fiddler to monitor HTTP traffic in Domino Java agents
  • Share Show Menu▼
  • Subscribe Show Menu▼

Recent articles by this author

1998 book "Programming Domino With Java" now available in full

While now long out of print, my 1998 book on using Java in Domino was the first comprehensive description of the (then) new back-end classes for Java

Using Fiddler to monitor HTTP traffic in Domino Java agents

Sometimes you need to see ALL the HTTPHTTPS traffic that goes out of your computer andor returns to it. While you can write debug code to log the URLs your code uses and the "payloads" you send and receive, viewing the actual HTTP headers is more complicated.

Access Notes response hierarchies without using views

Many LotusScript and Java developers assume that if you want to iterate through a documen response hierarchy, you have to use a view to do it. While this is often the right way to go, having extra views in a database solely for agent or program access can cause problems and consume a lot of space. ...

How do you REALLY find all the documents in a database?

There are at least 3 common techniques: 1) Database.AllDocuments, 2) Find "All Documents" view, 3) Database.search Each behaves differently. See this article on my blog for the details: ...

Sample: Download JavaDocs files to Notes DocLibrary

Sample Java app to show you how to use Google APIs to discover and download all your stored documents
Community articleUsing Fiddler to monitor HTTP traffic in Domino Java agents
Added by ~Delores Lopfooteroden | Edited by ~Autumn Minjipyteroden on April 5, 2012 | Version 2
  • Actions Show Menu▼
expanded Abstract
collapsed Abstract
Sometimes you need to see ALL the HTTP/HTTPS traffic that goes out of your computer and/or returns to it. While you can write debug code to log the URLs your code uses and the "payloads" you send and receive, viewing the actual HTTP headers is more complicated.
Tags: Java Agents Debug HTTP
Read my blog post to see how to easily configure the JVM to proxy all traffic through Fiddler, a free utility for monitoring web traffic:
http://bobzblog.com/tuxedoguy.nsf/dx/using-fiddler-to-monitor-http-traffic-in-domino-java-agents

 

To answer the question in the blog article, yes, this is possible with Notes client agents run from within the client JVM. (Starting in ND8, I believe)

The Notes.INI parameter JavaUserOptionsFile refers to a text properties file that can contain JVM startup parameters. So, setting this line to

JavaUserOptionsFile=jvm_params.properties

on startup the JVM will attempt to load the settings found in the file \jvm_params.properties

To work with Fiddler, the contents of jvm_params.properties should contain (at least):

-Dhttp.proxyHost=127.0.0.1

-Dhttp.proxyPort=8888

 

To capture HTTPS traffic, first follow the instructions provided on the Fiddler website. Then, the self-signed cert created by Fiddler will need to be imported into the client JVM trusted cert store (\jvm\lib\security\cacerts)


  • Actions Show Menu▼


expanded Attachments (0)
collapsed Attachments (0)
Edit the article to add or modify attachments.
expanded Versions (2)
collapsed Versions (2)
Version Comparison     
VersionDateChanged by              Summary of changes
This version (2)Apr 5, 2012, 10:59:39 PM~Autumn Minjipyteroden  Added details on using Fiddler with client Java Agents
1Mar 14, 2011, 8:24:52 AM~Delores Cisfanatexobu  
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedAbout
  • HCL Software
  • HCL Digital Solutions community
  • HCL Software support
  • BlogsDigital Solutions blog
  • Community LinkHCL Software forums and blogs
  • About HCL
  • Privacy
  • Accessibility